package com.atguigu.gmall.client.service;

import com.atguigu.gmall.entity.SeckillProduct;
import com.atguigu.gmall.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("shop-seckill")
public interface SeckillFeignClientService {

    @GetMapping("/seckill/queryAllSeckillProduct")
    RetVal queryAllSeckillProduct();

    //2.根据skuId 获取秒杀对象数据
    @GetMapping("/seckill/getSeckillProductBySkuId/{skuId}")
    public RetVal getSeckillProductBySkuId(@PathVariable Long skuId);

    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();

}
